package com.kb.design.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

/**
 * 客户评论表(DesignComment)实体类
 *
 * @author makejava
 * @since 2024-01-31 16:44:48
 */
@Data
@TableName("design_comment")
@NoArgsConstructor
@AllArgsConstructor
public class DesignComment implements Serializable {
    private static final long serialVersionUID = 691302108070740837L;

    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 用户
     */
    private String userName;

    /**
     * 内容
     */
    private String content;
    private String createBy;
    private String createByName;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    /**
     * 项目id
     */
    private Long projectId;

}

